package com.colorlight.cloud.complete.entity.po;

import com.colorlight.cloud.gateway.api.annotation.defaultValue;
import com.colorlight.cloud.gateway.api.message.constraint.basics.object.Trans;
import com.colorlight.iot.proto.complete.entity.CompleteEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Demon
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class SenderAuthorizationInfo implements Trans<SenderAuthorizationInfo, CompleteEntity.SenderAuthorizationInfo> {

    /**
     * 只能用于加解密 返回空或者00 00 00 00代表不支持加解密
     */
    private String encryptionKey;

    /**
     * 发送卡序号
     */
    private Integer prcIndex;

    /**
     * 加解密状态
     */
    private AuthInfo authInfo;

    /**
     * 厂商id 仅用于加解密 没有传 -9999
     */
    @defaultValue
    private Integer authInfoId;
}


